<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html;" charset="utf-8" />
        <title>Untitled Document</title>
    </head>
    <body>
        <h1>Thông tin đơn hàng</h1>
        <table width="100%">
            <tr>
                <td>sô thứ tự </td>
                <td>tên sản phẩm</td>
                <td>đơn giá </td>
                <td>số lượng</td>
                <td>thành tiền</td>
            </tr>
            <?php $i=0 ;?>
            <?php foreach ($carts as $cart) : ?>
            <tr>
                <td><?php echo $i= $i+1; ?></td>
                <td>
                    <img width="200px" src="<?php echo base_url('assets/product_images/product/'.$cart['image']);?> " />
                    <br />
                    <?php echo $cart['name'];?>
                </td>
                <td><?php echo $cart['price'];?></td>
                <td><?php echo $cart['qty'];?></td>
                <td><?php echo $cart['subtotal'];?></td>
            </tr>
            <?php endforeach ;?>
        </table>
        <h2>Thông tin khách hàng</h2>
        <table width="60%">
            <tr>
                <td>Họ và tên:</td>
                <td><?php echo $this->session->userdata('order_name'); ?></td>
            </tr>
            <tr>
                <td>Địa chỉ mail:</td>
                <td><?php echo $this->session->userdata('order_email'); ?></td>
            </tr>
            <tr>
                <td>số điện thoại:</td>
                <td><?php echo $this->session->userdata('order_phone_no'); ?></td>
            </tr>
            <tr>
                <td>Chọn phương thức nhận hàng:</td>
                <td><?php echo $this->session->userdata('order_deliver_method'); ?></td>
            </tr>
            <tr>
                <td>Địa chỉ nhận hàng:</td>
                <td><?php echo $this->session->userdata('order_address'); ?></td>
            </tr>
            <tr>
                <td>Ghi chú:</td>
                <td><?php echo $this->session->userdata('order_comment'); ?></td>
            </tr>
            <tr>
                <td>Phí vận chuyển: <?php echo $total_shipping;?></td>
                <td>Tổng tiền:<?php echo $total_all;?></td>
            </tr>
            <tr>
                <td><a href="<?php echo site_url('');?>">tiếp tục mua hàng</a></td>
            </tr>
        </table>

    </body>
</html>
